package com.weiyin.examination.activity;

import android.graphics.BitmapFactory;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.weiyin.examination.R;
import com.weiyin.examination.util.LogUtil;

import java.util.List;

/**
 * Created by darkshadow on 2018/7/31.
 */

public class Adapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public Adapter(int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        LogUtil.i(TAG, item);
        helper.setImageBitmap(R.id.imageview, BitmapFactory.decodeFile(item));
    }
}
